From: Jochen Sprickerhof Date: Tue, 24 Sep 2019 20:06:36 +0000 (+0200) Subject: Add patch for "super gps" X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~86 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=f775b65b097704e037e0a61aa602f0ea1fd3ae97;p=gpsbabel.git Add patch for "super gps" Closes: #935373 Thanks: Tim Connors --- diff --git a/debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch b/debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch new file mode 100644 index 000000000..bf930d8ed --- /dev/null +++ b/debian/patches/0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch @@ -0,0 +1,23 @@ +From: Tim Connors +Date: Sat, 14 Sep 2019 22:06:06 +1000 +Subject: The lezyne "super gps", every 10th ride or so, + outputs a .fit file that is entirely valid other than a weird non 0/1 endian + field. Don't dump the data just because of that. + +--- + garmin_fit.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/garmin_fit.cc b/garmin_fit.cc +index ad949f4..8f2b8e1 100644 +--- a/garmin_fit.cc ++++ b/garmin_fit.cc +@@ -253,7 +253,7 @@ fit_parse_definition_message(uint8_t header) + // second byte is endianness + def->endian = fit_getuint8(); + if (def->endian > 1) { +- fatal(MYNAME ": Bad endian field\n"); ++ warning(MYNAME ": Unusual endian field (interpreting as big endian): %d\n",def->endian); + } + fit_data.endian = def->endian; + diff --git a/debian/patches/series b/debian/patches/series index f4937223b..64be84137 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,3 +9,4 @@ htmldoc-location 0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch 0010-Fix-manpage-xml.patch cross.patch +0012-The-lezyne-super-gps-every-10th-ride-or-so-outputs-a.patch